<template>
  <div>
    <!-- 自身爱好选择 -->
    <!-- ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"] -->
    <p>选择爱好</p>
    <span>
      <input type="checkbox" v-on="list" />穿越火线
      <input type="checkbox" v-on="list" />王者荣耀
      <input type="checkbox" v-on="list" />刺激战场
      <input type="checkbox" v-on="list" />和平精英
      <input type="checkbox" v-on="list" />CSGO
      <input type="checkbox" v-on="list" />枪战王者
      <input type="checkbox" v-on="list" />摩尔庄园
      <input type="checkbox" v-on="list" />手游LOL
    </span>
    <p>{{ list }}</p>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: "",
    };
  },
};
</script>
<style>
div {
  width: 1000px;
  height: 300px;
  margin: 100px auto;
  background-color: #8df;
}
p {
  text-align: center;
  padding-top: 20px;
  font-size: 20px;
  color: rebeccapurple;
}
span {
  padding-left: 140px;
}
</style>
